package cn.youyu.fm.service;

import cn.youyu.fm.dao.IMenuDao;
import cn.youyu.fm.domain.Menu;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: mayuanbao
 * @date: 2018-12-27 22:33
 * @description:
 */
@Service(value = "menuService")
public class MenuServiceImpl implements IMenuService {
    @Resource(name = "menuDao")
    private IMenuDao dao;

    @Override
    public List<Menu> getMenu(Integer id) {
        return dao.getMenu(id);
    }

    @Override
    public List<Menu> getMenuByRoleId(Integer roleId) {
        return dao.getMenuByRoleId(roleId);
    }
}
